﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICE.Vacations.Datos.FileManager;

namespace ICE.Vacations.Logica.Logueo
{
    public static class Writter
    {
        public enum MessageType { Information, Error, Warning }

        public static void fileWrite(string message, MessageType type)
        {
            switch (type)
            {
                case MessageType.Error:
                    { Logger.fileWrite(message, Logger.MessageType.Error); }break;
                case MessageType.Information:
                    { Logger.fileWrite(message, Logger.MessageType.Information); }break;
                case MessageType.Warning:
                    { Logger.fileWrite(message, Logger.MessageType.Information); }break;

                default:
                    throw new Exception("Tipo de Error Inesperado");
            }
        }
    }
}
